const initialQueryParams = {
  name: '',
  type: '',
  status: ''
};

const application = {
  namespaced: true,
  state: {
    // 查询日志的参数
    query: initialQueryParams
  },

  mutations: {
    SET_QUERY: (state, params) => {
      state.query = { ...state.query, ...params };
    },

    RESET_QUERY: (state) => {
      state.query = { ...state.query, ...initialQueryParams};
    }
  }
}

export default application;
